﻿using System;
using QFramework;
using UnityEngine;

namespace ProjectMyFarmAndShe
{
    public class GameManager : MonoBehaviour,IController
    {
        private void OnApplicationQuit()
        {
            var saveUtility = this.GetUtility<ISaveUtility>();
            
            foreach (var action in saveUtility.AllSaveDataAction)
            {
                action(saveUtility);
            }
        }

        public IArchitecture GetArchitecture()
        {
            return Global.Interface;
        }
    }
}